#include "eventlabel.h"
EventLabel::EventLabel()
{
    this->setMinimumSize(500,500);
}
void EventLabel::mouseMoveEvent(QMouseEvent *e)
{
    QString str;
    str = QString("<center><h1>Move: (%1, %2)</h1></center>").arg(QString::number(e->x()), QString::number(e->y()));
    this->setText(str);
}
void EventLabel::mousePressEvent(QMouseEvent *e)
{
    QString str;
    str = QString("<center><h1>Press: (%1, %2)</h1></center>").arg(QString::number(e->x()), QString::number(e->y()));
    this->setText(str);
    //to do: tell left click/right click
}
void EventLabel::mouseReleaseEvent(QMouseEvent *e)
{
    QString str;
    str = QString("<center><h1>Release: (%1, %2)</h1></center>").arg(QString::number(e->x()), QString::number(e->y()));
    this->setText(str);
}

